/**
 * 视频元数据
 */
export interface VideoMetadata {
    /**
     * 视频总时长, 秒
     */
    duration: number

}

export type PlayerInst = {
    play: (ignoreListener: boolean) => Promise<void>,
    pause: (ignoreListener: boolean) => void,
    seek: (time: number, ignoreListener: boolean) => void,
    speed: (value: number, ignoreListener: boolean) => void,
    getSpeed: () => number,

    danmu: (options: { text: string, color?: string }) => void,

    disableListeners: () => void,
    enableListeners: () => void
}